from celery_tasks.main import app
from utils.sms.sms_util import SmsUtil

# celery -A celery_tasks.main worker -l info 启动celery
# sms的tasks.py里添加任务 tasks.py文件名不可以改变
@app.task
def celery_send_sms_code(mobile, code):
    SmsUtil().send_message(mobile, (code, 2))
